package com.qiche.enums;

public enum ResultEnum {
	UNKONW_ERROR(-1,"未知错误"),
	SUCCESS(2000,"成功"),
	CARD_VERIFY_SUCCESS(2000,"卡券核销成功"),
	FAILURE(4000,"失败"),
	ENCHASHMENT_FAILURE(4001,"钱包用户数据异常"),
	MEMBER_EXIST_BY_PHONE(4005,"该手机号码的会员已经存在"), 
	RETRUN_REGISTER_PAGE(4006,"授权成功请绑定手机号"),
	MEMBER_CODE_TIME_OUT(4007,"验证码过期"),
	VERIFY_CODE_ERROR(4008,"验证码错误"),
	CARD_NOT_EXIST(4009,"优惠券不存在"),
	CARD_NOT_VERIFY(4010,"卡券未核销"),
	NO_PICC_MEMBER_ERROR(4011,"没有关注Picc公众号,请关注"),
	ACTIVITY_START(4012,"活动未开始，请继续关注！"),
	ACTIVITY_END(4013,"您已经过了抽奖时间，请关注下次活动"),
	USER_HAS_EXIST(500,"用户名已经被注册"),
	REGISTER_APPLY_SUCCESS(2000,"提交申请成功,请保持手机畅通,工作人员会在1个工作日内与你联系。"),
	POLICY_HAS_EXISTED(500,"该保单已经存在"), 
	PACKAGE_HAS_POSTED(500,"改礼包已经发送过了"),
	POST_CARD_SUCCESS(2000,"发送成功"),
	POST_CARD_FAILURE(4000,"发送失败"),
	PARAM_ERROR(500,"参数错误"),
	
	_PARAM_ERROR(500,"参数错误"),
	
	ACCESSTOKEN_ERROR(5000,"accessToken验证不通过！"),
	PRODUCT_HAS_RELATIVED(-1,"产品已被关联，无法删除"),
	
	CARD_NOT_LOCAL_USE(500,"该优惠券不能在本店使用"),
	CARD_HAS_USED(500,"该优惠券已经被使用"),
	CARD_NOT_TIME_VALIABLE(500,"该优惠券不在使用范围之内"),
	
	VERIFY_SUCCESS(500,"核销成功"),
	VERIFY_FAILURE(500,"核销失败"),

	MEMBER_LOGIN_PAST(-500,"重新登陆"),

	DEL_SUBSCRIBEPRODUCT_ERROR(-1,"不是开单状态 不容许修改"),

	MEMBERCAR_EXIST(-1,"用户车辆已存在"),

	SUBSCRIBE_NOT_EXIST_ERROR(-1,"预约不存在"),
	NOT_SUBSCRIBING_ERROR(-1,"此单状态不能开单"),
	NOT_CANCEL_ERROR(-1,"此单状态不能取消"),
	NOT_FINISH_ERROR(-1,"此单状态不能结算"),
	SUBSCRIBESTATUS_ERROR(-1,"订单状态异常"),
	LOGIN_ERROR(-1,"账户名或密码有误"),
	USERNAME_PASSWORD_IS_NULL(-1,"账户名或密码不能为空"),
	USER_LOCK_ERROR(-1,"用户已经被锁定不能登录，请与管理员联系！"),
	COUNT_CONNECT_WIFI_ERROR(-200,"需要连接人保WiFi"),
	GET_WX_UNIONID_ERROR(-1 , "获取用户微信信息失败"),
	LAST_PRODUCT_OF_SUBSCRIBE_ERROR(-1,"一个订单，至少有一个服务项"),
	
	
	UNAUTHORIZED_OPERATION(500,"未授权的操作")
	;
	private Integer code;
	private String msg;
	ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	public Integer getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
	
	
	
}
